<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
    [
        '<div contenteditable><ol>',
            '<li>|one</li><li>two</li><li><br></li><li>four</li>',
        '</ol></div>',
    ],
    selection => selection.modify('move', 'forward', 'line'),
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>|two</li><li><br></li><li>four</li>',
        '</ol></div>',
    ]);
selection_test(
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>|two</li><li><br></li><li>four</li>',
        '</ol></div>',
    ],
    selection => selection.modify('move', 'forward', 'line'),
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>two</li><li>|<br></li><li>four</li>',
        '</ol></div>',
    ]);
selection_test(
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>two</li><li>|<br></li><li>four</li>',
        '</ol></div>',
    ],
    selection => selection.modify('move', 'forward', 'line'),
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>two</li><li><br></li><li>|four</li>',
        '</ol></div>',
    ]);
selection_test(
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>two</li><li><br></li><li>|four</li>',
        '</ol></div>',
    ],
    selection => selection.modify('move', 'forward', 'line'),
    [
        '<div contenteditable><ol>',
            '<li>one</li><li>two</li><li><br></li><li>four|</li>',
        '</ol></div>',
    ]);
</script>
